#include <iostream>

class base {
private:
        int a;
protected:
        int b;
public:
        int c;
        void seta(int xx) {a = xx;}
        int geta() {return a;}
};

class foo : private base {
public:
        //int foo_geta() {return a;}; /* error */
        int foo_geta() {return geta();}
        int foo_getb() {return b;}
        int foo_getc() {return c;}
};

int main()
{
        foo a;

        //a.a = 3;                // error
        //a.b = 4;                // error
        //a.c;                    // error
}
